﻿#include "MaterialManager.h"
const std::unordered_map<std::string, std::shared_ptr<Material>>& MaterialManager::GetMaterials() const
{
    return mMaterials;
}

const std::shared_ptr<Material> MaterialManager::GetMaterial(const std::string& name)
{
    if(mMaterials.find(name) != mMaterials.end())
    {
        return  mMaterials[name];
    }

    return nullptr;
}
